# -*- coding: utf-8 -*-
import logging
from datetime import timedelta

SERVER_PORT = 8999
DEBUG = True
SQLALCHEMY_ECHO = False

SQLALCHEMY_DATABASE_URI = 'mysql://root:123456@127.0.0.1:3306/db_falsk_fast?charset=utf8mb4'
SQLALCHEMY_ENGINE_OPTIONS = {
    "pool_recycle": 120  # 自动回收连接的秒数
}
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_ENCODING = "utf8mb4"
LOG_LEVEL = 'DEBUG'  # 或者其他级别，如 'INFO', 'WARNING', 'ERROR', 'CRITICAL'
JWT_SECRET_KEY = '123123123'
JWT_HEADER_NAME = 'token'
JWT_ACCESS_TOKEN_EXPIRES = timedelta(minutes=30) # token过期时间（分钟）